using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._GeocodingTools
{
    /// <summary>
    /// <para>Package Locator</para>
    /// <para>Package Locator</para>
    /// <para>包裹定位器</para>
    /// </summary>    
    [DisplayName("Package Locator")]
    public class PackageLocator : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public PackageLocator()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_locator">
        /// <para>Input Locator</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_output_file">
        /// <para>Output File</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public PackageLocator(object _in_locator, object _output_file)
        {
            this._in_locator = _in_locator;
            this._output_file = _output_file;
        }
        public override string ToolboxName => "Geocoding Tools";

        public override string ToolName => "Package Locator";

        public override string CallName => "geocoding.PackageLocator";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_locator, _output_file, _copy_arcsde_locator.GetGPValue(), _additional_files, _summary, _tags];

        /// <summary>
        /// <para>Input Locator</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Locator")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_locator { get; set; }


        /// <summary>
        /// <para>Output File</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output File")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _output_file { get; set; }


        /// <summary>
        /// <para>Composite locator only: copy participating locators in ArcSDE database instead of referencing them</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Composite locator only: copy participating locators in ArcSDE database instead of referencing them")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _copy_arcsde_locator_value _copy_arcsde_locator { get; set; } = _copy_arcsde_locator_value._true;

        public enum _copy_arcsde_locator_value
        {
            /// <summary>
            /// <para>COPY_ARCSDE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("COPY_ARCSDE")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>PRESERVE_ARCSDE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("PRESERVE_ARCSDE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Additional Files</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Additional Files")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public List<object> _additional_files { get; set; } = null;


        /// <summary>
        /// <para>Summary</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Summary")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _summary { get; set; } = null;


        /// <summary>
        /// <para>Tags</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Tags")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _tags { get; set; } = null;


        public PackageLocator SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}